package com.service;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.UserDao;
import com.pojo.Userpojo;
import com.util.MybatisSessionFactory;

public class UserService {
	SqlSession session = MybatisSessionFactory.getSqlSession();
	UserDao c = session.getMapper(UserDao.class);
//查询账户密码
	public Userpojo queryall(@Param("account") String account,
			@Param("password") String password) {
		return c.queryall(account, password);
	}

}
